package com.example.templateapp.util.http

data class BaseResponse<T> (
    val code: Int? = -1,
    val msg: String?,
    val data: T?,
    val info: String?,
    val list: String?
) {
    fun succeed(): Boolean {
        return code == 0
    }
}